﻿using System.Collections.Generic;
using FlowCanvas;
using FlowCanvas.Nodes;
using LogSystem;
using NodeCanvas.Framework;
using ParadoxNotion;
using ParadoxNotion.Design;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    [Category("Ggame")]
    public class DestroySphereTrigger : CallableActionNode<string>
    {
        public override void Invoke(string pointName)
        {
            if (SphereTrigger.BlueprintTriggers.ContainsKey(pointName))
            {
                GameObject.Destroy(SphereTrigger.BlueprintTriggers[pointName]);
                SphereTrigger.BlueprintTriggers.Remove(pointName);
            }
        }
    }
}